<?php

use backend\widgets\ActiveForm;
use common\models\Photostatus;
use yii\helpers\ArrayHelper;
use common\widgets\JsBlock;

/* @var $this yii\web\View */
/* @var $model backend\models\Photo */
/* @var $form backend\widgets\ActiveForm */
?>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox">
			<?= $this->render( '/widgets/_ibox-title' ) ?>
            <div class="ibox-content">
				<?php $form = ActiveForm::begin( [
					'options' => [
						'class' => 'form-horizontal',
                        'enctype' => 'multipart/form-data',
					]
				] ); ?>
                <div class="hr-line-dashed"></div>


                <?php
                    $psObjs = Photostatus::find()->all();
                    $allStatus = ArrayHelper::map($psObjs,'id','name');
//                    var_dump($allStatus);
                ?>
                <?=$form->field($model,'status')->dropDownList(
                        $allStatus,
                        ['prompt'=>'请选择状态']
                )?>

                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'id' )->textInput() ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'uid' )->textInput() ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'brife' )->textarea( [ 'maxlength' => true,] ) ?>
                <div class="hr-line-dashed"></div>

	            <?= $form->field($model, 'img')->imgInput(['style' => 'max-width:200px;max-height:200px']); ?>
                <div class="hr-line-dashed"></div>
                <!--				--><?//= $form->field( $model, 'img' )->textInput( [ 'maxlength' => true,] ) ?>

				<?= $form->field( $model, 'iso' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

<!--				--><?//= $form->field( $model, 'status' )->textInput( [ 'maxlength' => true ] ) ?>


				<?= $form->field( $model, 'type' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'make' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'lens' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'model' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'exposer' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'fnumber' )->textInput( [ 'maxlength' => true ,] ) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'flength' )->textInput() ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'created_at' )->textInput() ?>
                <div class="hr-line-dashed"></div>

				<?= $form->field( $model, 'updated_at' )->textInput([]) ?>
                <div class="hr-line-dashed"></div>

				<?= $form->defaultButtons() ?>
				<?php ActiveForm::end(); ?>
            </div>
        </div>
    </div>
</div>